package com.situ.user.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.situ.user.bean.Address;
import com.situ.user.mapper.AddressMapper;
import com.situ.user.service.AddressService;

@Service
public class AddressServiceimpl implements AddressService {

	@Autowired
	private AddressMapper addressMapper;

	@Override
	public List getByUserId(Integer userId) {
		return addressMapper.selectByUserId(userId);
	}

	@Override
	public Address getById(Integer addressId) {
		return addressMapper.selectByPrimaryKey(addressId);
	}
}
